package com.bdzl.credit.dao;

import com.bdzl.pub.entity.loan.CreditDO;
import com.bdzl.pub.vo.loan.CreditVO;

import java.util.List;
import java.util.Map;

/**
 * 客户个人征信查询缓存信息表
 * @author yangyicai
 * @email yangyicai@foxmail.com
 * @date 2021-05-11 15:23:42
 */
public interface CreditDao {

	CreditDO get(Integer creditId);

	List<CreditDO> list(Map<String,Object> map);

	List<CreditVO> CreditVOlist(Map<String,Object> map);

	int count(Map<String,Object> map);

	int save(CreditDO credit);

	int update(CreditDO credit);

	int remove(Integer credit_id);

	int batchRemove(Integer[] creditIds);
	/**
	 * @Description: TODO 根据身份证号查询征信数据
	 * @param cardId 身份证号
	 * @return: com.bdzl.pub.entity.loan.CreditDO
	 * @Author: Ming
	 * @Date: 2021/5/18 10:31
	 */
	CreditVO getCreditByCardId(String cardId);
}
